/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ems.entity.EmsCourse;
import com.thinkgem.jeesite.modules.ems.dao.EmsCourseDao;

/**
 * 班级Service
 * @author zad
 * @version 2018-01-25
 */
@Service
@Transactional(readOnly = true)
public class EmsCourseService extends CrudService<EmsCourseDao, EmsCourse> {

	public EmsCourse get(String id) {
		return super.get(id);
	}
	
	public List<EmsCourse> findList(EmsCourse emsCourse) {
		return super.findList(emsCourse);
	}
	
	public Page<EmsCourse> findPage(Page<EmsCourse> page, EmsCourse emsCourse) {
		return super.findPage(page, emsCourse);
	}
	
	@Transactional(readOnly = false)
	public void save(EmsCourse emsCourse) {
		super.save(emsCourse);
	}
	
	@Transactional(readOnly = false)
	public void delete(EmsCourse emsCourse) {
		super.delete(emsCourse);
	}
	
	// 用于课程复制
	public int copyCourse(Map<String,String> map)
	{
		return dao.copyCourse(map);
	}
}